package b;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-04-30
 * Time: 19:18
 */
public class Test {
    public static void main(String[] args) {
        int[] array = {4, 2, 6, 1, 3, 5, 15, 7, 16, 14};
        AVLTree avlTree = new AVLTree();
        for (int i = 0; i < array.length; i++) {
            avlTree.insert(array[i]);
        }
        AVLTree.TreeNode root =avlTree.root;
        System.out.println(avlTree.isBalance(root));


    }
}
